<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head id="Head1"><title>
	修改合同记录
</title><link href="../Styles/css.css" rel="stylesheet" type="text/css" /><link href="../Styles/ts_css.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.hotkeys.js" type="text/javascript"></script>
    <script src="../Scripts/jstree/jquery.jstree.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.cookie.js" type="text/javascript"></script>
    <script src="../Scripts/EmployeesManager.js" type="text/javascript"></script>
    <!--<script src="Scripts/EmployeesManager.js?0d189a86cc764626a482e60e084441dd" type="text/javascript"></script>-->
</head>
<body style="margin-top: 5px; background: #EFF3FF;">
   <!--  <form method="post" action="EmployeesManager.htm" id="form1"> -->


<form action="/wanda/contract/update_contract.do" method="post">
    <div style="background: #EFF3FF; width: 22%; float: left; overflow-y: auto;">
        <div id="tree" class="tree" style="background: #EFF3FF;">
        </div>
    </div>
    <div style="width: 75%; float: left; border: 0px solid #82AFE8">
    	<h2>修改合同信息</h2>
        <table width="100%" >
            <tr>
                <td width="6%">
                    合同内容：
                </td>
                <td width="13%">
                <input type="hidden" name="contractId" value="${ bean.contractId }" />
                <input type="text" name="contractContent" value="${ bean.contractContent }" />
               <%--  <select name="customerName">
                	
                	<c:forEach items="${ cus }" var="clist">
					<c:choose>
						<c:when test="${ reception.customerName == clist.customerName }">
							<option value="${ reception.customerName }" selected>${ reception.customerName }</option>
						</c:when>
						<c:otherwise>
							<option value="${ clist.customerName }">${ clist.customerName }</option>
						</c:otherwise>
					</c:choose>
					
				</c:forEach>
                </select>  --%>
                </td>
                <td width="7%">
                         订单号：
                </td>
            <%--     <td width="13%">
	                <c:if test="${ reception.receptionMode == '来访' }">
	                   	 来访<input name="receptionMode" type="radio" id="receptionMode"  value="来访" checked="checked"/>
	                   	 来电<input name="receptionMode" type="radio" id="receptionMode"  value="来电"/>
	                </c:if>
	                 <c:if test="${ reception.receptionMode == '来电' }">
	                   	 来访<input name="receptionMode" type="radio" id="receptionMode"  value="来访"/>
	                   	 来电<input name="receptionMode" type="radio" id="receptionMode"  value="来电"  checked="checked" />
	                </c:if>
                </td> --%>
                <td>
                       <input type="text" name="orderId" value="${ bean.orderId }" disabled="disabled" />         
                </td>
            </tr>
            <tr>
                <td width="7%">
                    房间：
                </td>
                <td width="13%">
                      <select name="roomId">
                	
                	<c:forEach items="${ roomList }" var="clist">
					<c:choose>
						<c:when test="${ bean.roomId == clist.roomId }">
							<option value="${ bean.roomId }" selected>${ clist.roomCode }</option>
						</c:when>
						<c:otherwise>
							<option value="${ clist.roomId }">${ clist.roomCode }</option>
						</c:otherwise>
					</c:choose>
					
				</c:forEach>
                </select> 
                </td>
            
            
           
                <td width="6%">
                    合同甲方：
                </td>
                <td width="13%">
                    <input name="firstParty" type="text" id="firstParty" value="${ bean.firstParty }" style="width:95%;" />
                </td>
                </tr>
                <tr>
                <td width="7%">
                    合同乙方：
                </td>
                <td width="13%"  colspan="2">
                   	    <select name="customerId">
                	
                	<c:forEach items="${ customerList }" var="bean1">
					<c:choose>
						<c:when test="${ bean.customerId == bean1.customerId }">
							<option value="${ bean.customerId }" selected>${ bean1.customerName }</option>
						</c:when>
						<c:otherwise>
							<option value="${ bean1.customerId }">${ bean1.customerName }</option>
						</c:otherwise>
					</c:choose>
					
				</c:forEach>
                </select> 
                </td>
                
               </tr>
               
                     <tr>
                <td width="7%">
                    业务员名称：
                </td>
                <td width="13%"  colspan="2">
                   	 <input name="name" type="text" value="${ bean.name }" id="name" />
                </td>
                
               </tr>
               
                   </tr>
               
                     <tr>
                <td width="7%">
                    付款方式：
                </td>
                <td width="13%"  colspan="2">
                   	 <input name="payTypeName" type="text" value="${ bean.payTypeName }" id="payTypeName" />
                </td>
               
               </tr>
               
               <tr>
                <td width="7%">
                   总价：
                </td>
                <td width="13%"  colspan="2">
                   	 <input name="total" type="text" value="${ bean.total }" id="total" />
                </td>
                <td>
                	<input type="submit" value="修改" />
                </td>
               </tr>
        </table>
</form>

        
            <script type="text/javascript">
<!--
                var Ptr = document.getElementById("tab").getElementsByTagName("tr");
                function pageLoad() {
                    for (i = 1; i < Ptr.length + 1; i++) {
                        Ptr[i - 1].className = (i % 2 > 0) ? "t1" : "t2";
                    }
                }
                window.onload = pageLoad;
                for (var i = 0; i < Ptr.length; i++) {
                    Ptr[i].onmouseover = function () {
                        this.tmpClass = this.className;
                        this.className = "t3";

                    };
                    Ptr[i].onmouseout = function () {
                        this.className = this.tmpClass;
                    };
                }
//-->
            </script>
            
            
            <script>
             //删除
                function del(customerId){
			  		if(confirm('是否删除？')){
			  			location.href="delete_customer.do?customerId="+customerId;
			  		}
			  	}
            </script>
             <div style="width: 100%;">
        </div>
        </div>
       
    </div>
   
    </form>
</body>
</html>
